package com.laker.autotest.webui.dev;

import com.microsoft.playwright.CLI;

import java.io.IOException;

/**
 * 使用<a href="https://trace.playwright.dev/">打开录制的trace.zip</a>
 * 或者使用该工具类打开
 */
public class TraceViewer {
    public static void main(String[] args) throws IOException, InterruptedException {
        String traceZipPath = "trace/2024-03-16_22-27-28_1892903911_BaiduPageTest-search.zip";
        String[] params = new String[]{"show-trace", traceZipPath};
        CLI.main(params);
    }
}
